<template>
    <div>
        <!--    top-->
        <div id="header">

            <div class="center-box clear-fix">
                <div class="header-logo">
                    <span>阳光沙滩</span>
                </div>

                <div class="header-menu float-left">
                    <ul>
                        <a href="/">
                            <li :class="$store.state.currentActive ==='index'?'menu-active':''">优惠劵场</li>
                        </a>
                        <a href="/discovery">
                            <li :class="$store.state.currentActive ==='discovery'?'menu-active':''">发现</li>
                        </a>

                        <a href="/onSell">
                            <li :class="$store.state.currentActive ==='onSell'?'menu-active':''">特惠</li>
                        </a>
                    </ul>
                </div>

                <div class="header-search-box float-left">
                    <el-input placeholder="please input something" size="small"></el-input>
                </div>

                <div class="header-search-btn float-left">
                    <el-button type="danger" size="small">搜索</el-button>
                </div>

            </div>
        </div>
        <nuxt/>
        <!--    bottom-->
        <div id="footer">
            <div class="center-box">
                <div class="footer-link clear-fix">
                    <ul>
                        <li>联系我们</li>
                        <li>人才招聘</li>
                        <li>广告投放</li>
                        <li>网点加盟</li>
                        <li>常见问题</li>
                        <li>友情链接</li>
                    </ul>
                </div>

                <div class="footer-info">
                    <p>copyright 2020-4-14 LiaoRun</p>
                </div>
            </div>
        </div>
    </div>
</template>

<style>
    html {
        font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-size: 16px;
        word-spacing: 1px;
        -ms-text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        box-sizing: border-box;
    }

    *, *:before, *:after {
        box-sizing: border-box;
        margin: 0;
    }

    .header-logo {
        line-height: 70px;
        float: left;
        font-size: 24px;
        font-weight: 600;
        color: #c9302d;
    }

    .center-box {
        width: 1140px;
        margin: 0 auto;
    }

    .header-menu ul {
        list-style: none;
    }


    .header-menu li {
        color: #000;
        line-height: 70px;
        font-size: 16px;
        font-weight: 600;
        padding-left: 10px;
        padding-right: 10px;
        float: left;
        cursor: pointer;
    }

    .header-menu li:hover {
        background: #0000000a;
    }

    .clear-fix {
        zoom: 1;
        overflow: auto;
    }

    .float-left {
        float: left;
    }

    #header {
        background: white;
        box-shadow: 0 5px 10px #d4d4d4;
        height: 70px;
    }

    .header-search-box {
        margin-left: 20px;
    }

    .header-search-box, .header-search-btn {
        line-height: 70px;
    }

    .header-search-btn {
        margin-left: 40px;
    }

    .header-search-box, .el-input {
        width: 300px;
    }

    .header-search-btn, .el-button-danger {
        width: 100px;
    }

    .menu-active {
        background: #0000000a;
    }

    #footer {
        background: #c9302c;
    }


    .footer-link ul {
        list-style: none;
        display: inline-block;
    }

    .footer-link {
        text-align: center;
        padding-top: 40px;
    }

    .footer-link li {
        float: left;
        line-height: 30px;
        color: white;
        padding-right: 10px;
        padding-left: 15px;
        margin-left: 10px;
        margin-right: 10px;
        cursor: pointer;
    }

    .footer-info {
        color: white;
        line-height: 30px;
        text-align: center;
    }


    .header-menu {
        margin-left: 30px;
    }
</style>
